package cn.xorange.commons.security.constants;

import cn.xorange.commons.utils.configuration.constants.UtilsConstants;

/**
 * @author : yangjian
 * date : 2023/2/15
 */
public class SecurityConstants extends UtilsConstants {

    public static final String URL_LOGIN = "/login/token";
    public static final String URL_LOGOUT = "/logout";
    public static final String URL_CAPTCHA = "/login/captcha";
    public static final String URL_GET_TENANT = "/login/tenant";
    public static final String URL_REFRESH_TOKEN = "/login/refreshToken";
    public static final String URL_USERINFO = "/login/userinfo";
    public static final String URL_ROUTERS = "/login/getRouters";

    /** Web头部令牌标识 */
    public static final String HEADER_AUTHORIZATION = "Authorization";

    /** 用户登录的系统类型 sys api orange */
    public static final String LOGIN_TYPE = "loginType";
    public static final String LOGIN_NAME = "loginName";
    public static final String LOGIN_PASSWORD = "password";
    // 登录注册标识
    public static final String LOGIN_REGISTER = "register";

    public static final String LOGIN_UUID = "uuid";
    public static final String LOGIN_CODE = "code";


    /** 所有权限标识 */
    public static final String ADMIN_PERMISSION = "*:*:*";
    public static final String ADMIN_ROLE = "admin";

    public static final Long DEFAULT_TENANT_ID = 1000L;


    public static final String TOKEN_ID = "tokenId";


    /**********    用户属性标识   *******************/
    /** 用户名字段*/
    public static final String USER_ID = "userId";
    public static final String USER_NAME = "username";
    public static final String NICK_NAME = "nickname";
    public static final String ORANGE_ID = "orangeId";
    public static final String USER_SEX = "sex";
    public static final String USER_BIRTHDAY = "birthday";
    public static final String USER_ZODIAC = "zodiac";
    public static final String USER_STAR = "star";
    public static final String USER_CITY = "city";

    /** 用户头像 **/
    public static final String USER_AVATAR = "avatar";

    /** 用户渠道ID */
    public static final String USER_TENANT_ID = "tenantId";

    /** 是否是超级管理员 **/
    public static final String USER_IS_SUPPER = "isSupper";

    public static final String APP_ID = "appId";






}
